FROM eclipse-temurin:11.0.17_8-jre

WORKDIR /opt/auth

ADD target/AUTH-0.0.1-SNAPSHOT.jar /opt/auth/target/

ADD BUILD/conf /opt/auth/conf
ADD BUILD/bin /opt/auth/bin

ENV NACOS_HOST nacos:8848
ENV JAR_NAME AUTH-0.0.1-SNAPSHOT.jar

CMD ["sh", "bin/restart.sh"]